<template>
	<view class="loadingCon">
		<view class="zt-loading">
			<view class="lin">
				<view class="zt-dot"></view>
				<view class="zt-dot"></view>
				<view class="zt-dot"></view>
				<view class="zt-dot"></view>
				<view class="zt-dot"></view>
			</view>
			<view class="t">loading……</view>
		</view>
	</view>
</template>

<script>
</script>

<style>
	.loadingCon{
		z-index: 9999;
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		background: rgba(0,0,0,0);
	}
	.zt-loading {
		width: 80px;
		height: 60px;
		background: #fff;
		position: relative;
		border-radius: 4px;
		text-align: center;
		box-shadow: 0 0 12px #CCCCCC;
	}

	.zt-dot {
		position: absolute;
		width: 10px;
		height: 10px;
		background: #009DFF;
		border-radius: 50%;
	}

	.zt-dot:nth-child(1) {
		animation: ztLoading 2s;
		animation-iteration-count: infinite;
	}

	.zt-dot:nth-child(2) {
		animation: ztLoading 1.8s;
		animation-iteration-count: infinite;
	}

	.zt-dot:nth-child(3) {
		animation: ztLoading 1.6s;
		animation-iteration-count: infinite;
	}

	.zt-dot:nth-child(4) {
		animation: ztLoading 1.4s;
		animation-iteration-count: infinite;
	}

	.zt-dot:nth-child(5) {
		animation: ztLoading 1.2s;
		animation-iteration-count: infinite;
	}

	.lin {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 100%;
		height: 10px;
		background: #FFF;
		border-radius: 10px;
		box-shadow: 0 0 12px #CCCCCC;
	}

	@keyframes ztLoading {
		from {
			left: 0;
			opacity: 1;
		}

		to {
			left: 100%;
			transform: translateX(-50%);
		}
	}

	.t {
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translate(-50%);
		font-size: 12px;
		color: #fff;
	}
</style>
